<?php
define("DEPLOYED",false);
require "global.php";

/**
$qq_arr = array();
$taglist = fiterHtmlTags("qqaddr.html","div");
foreach($taglist as $tag){
	if($tag['Attrs']['M']){
		$qq_arr[] = trim($tag['Attrs']['M']);
	}
}
$qq_arr = array_unique($qq_arr);

$pro_db = new PormotionDB();

foreach($qq_arr as $qq){
	echo $qq.PHP_EOL;
	$pro_db->insertMail(array('address'=>trim($qq)));
}
exit;
*/

$pro_db = new PormotionDB();

$qqlist = fopen("qq2.txt", 'r');
if($qqlist){
	while(($line = fgets($qqlist, 1024))) {
		echo trim($line).PHP_EOL;
		//try{
			$pro_db->insertMail(array('address'=>trim($line)));
		//}catch(Exception $e){
			
		//}
	}
}
fclose($qqlist);

?>